#include "sdl_exceptions.h"

namespace sdlex {

exception::exception(const std::string & a)throw () : message(a)
{
}

const char * exception::what() const throw ()
{
    return message.c_str();
}

exception::~exception() throw ()
{
}

critical_extension_not_present::critical_extension_not_present(const std::string & a)throw () : exception(std::string("Critical extension not present: ") + a)
{
}

critical_extension_not_present::~critical_extension_not_present() throw ()
{
}

SDL_exception::SDL_exception(const std::string & a)throw () : exception(std::string("SDL caused this exception: ") + a)
{
}

SDL_exception::~SDL_exception() throw ()
{
}

bad_resource::bad_resource(const std::string & a)throw () : exception(std::string("Wrong resource access: ") + a)
{
}

bad_resource::~bad_resource() throw ()
{
}
};
